package com.iscc.fake.service.Impl;


import com.iscc.fake.domain.Address;
import com.iscc.fake.dao.AddressDAO;
import com.iscc.fake.dao.Impl.AddressDaoImpl;
import com.iscc.fake.service.AddressService;

import java.util.List;

public class AddressServiceImpl implements AddressService {


    private AddressDAO addressDAO=new AddressDaoImpl();
    @Override
    public List<Address> selectAddress() {
        return addressDAO.selectAddress();
    }

    @Override
    public int add(Address address) {
        return addressDAO.add(address);
    }

    @Override
    public int update(Address address) {
        return addressDAO.update(address);
    }

    @Override
    public int del(int addno) {
        return addressDAO.del(addno);
    }


}
